﻿using System.Web.Mvc;

namespace Nop.Web
{
    public class NopWebAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Commerce";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            //default
            context.MapRoute(
                            "Commerce_default",
                            "Commerce/{controller}/{action}/{id}",
                            new { controller = "Home", action = "Index", area = "Commerce", id = "" },
                            new[] { "Nop.Web.Controllers" });
        }
    }
}
